package com.ruoyi.common.domain.business;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 客户对象 customer
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("customer")
@ApiModel(description = "客户")
public class Customer extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "${comment}")
    private Long id;
    /**
     * 客户名
     */
    @Excel(name = "客户名")
    @ApiModelProperty(name = "客户名")
    private String name;
    /**
     * 业务员id
     */
    @Excel(name = "业务员id")
    @ApiModelProperty(name = "业务员id")
    private Long salesmanId;
    /**
     * 客户编码
     */
    @Excel(name = "客户编码")
    @ApiModelProperty(name = "客户编码")
    private String code;
    /**
     * 客户收货地址
     */
    @Excel(name = "客户收货地址")
    @ApiModelProperty(name = "客户收货地址")
    private String receiveAddress;
    /**
     * 客户手机号
     */
    @Excel(name = "客户手机号")
    @ApiModelProperty(name = "客户手机号")
    private String phone;
    /**
     * 10为未绑定，20为已绑定
     */
    @Excel(name = "10为未绑定，20为已绑定")
    @ApiModelProperty(name = "10为未绑定，20为已绑定")
    private Long wxStatus;
    /**
     * 0为启用，1为失效
     */
    @Excel(name = "0为启用，1为失效")
    @ApiModelProperty(name = "0为启用，1为失效")
    private Long isAble;
    /**
     * 逻辑删除(0表示未删除，1表示软删除)
     */
    @TableLogic
    @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
    private Long isDelete;
}
